package br.com.rodolfo.timesheet.entity;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


/**
 * The persistent class for the tb_pausas database table.
 * 
 */
@Entity
@Table(name="tb_pausas")
public class Pausa implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(unique=true, nullable=false)
	private Integer id;
	
	//bi-directional many-to-one association to TbPonto
	@ManyToOne
	@JoinColumn(name="ponto_id", nullable=false, insertable=false, updatable=false)
	private Ponto ponto;

	private Timestamp entrada;

	private Timestamp saida;

	public Pausa() {
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Ponto getPonto() {
		return ponto;
	}

	public void setPonto(Ponto ponto) {
		this.ponto = ponto;
	}

	public Timestamp getEntrada() {
		return entrada;
	}

	public void setEntrada(Timestamp entrada) {
		this.entrada = entrada;
	}

	public Timestamp getSaida() {
		return saida;
	}

	public void setSaida(Timestamp saida) {
		this.saida = saida;
	}

	



}